﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Google.GData.Apps;
using Google.GData.Client;

namespace Google.Apps.MMC.Users
    {
    public partial class AddToGroup : Form
        {
        
        public AddToGroup(List<string> subscribed, List<string> newgroups, List<string> delgroups, Dictionary<string, string> allgroups)
            {
            InitializeComponent();

            foreach (string group in allgroups.Keys)
                {
                if ((!subscribed.Contains(group) && !newgroups.Contains(group)) || delgroups.Contains(group))
                     {
                    this.groups.Items.Add(group);
                    }
                }
            }

        }
    }
